package com.dzm.xgb.core.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.dzm.xgb.core.pojo.entity.Borrower;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dzm.xgb.core.pojo.vo.BorrowerApprovalVO;
import com.dzm.xgb.core.pojo.vo.BorrowerDetailVO;
import com.dzm.xgb.core.pojo.vo.BorrowerSearchVo;
import com.dzm.xgb.core.pojo.vo.BorrowerVo;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 * 借款人 服务类
 * </p>
 *
 * @author Dzm
 * @since 2024-08-27
 */
public interface BorrowerService extends IService<Borrower> {

    void saveBorrowerByUserId(BorrowerVo borrowerVo, Long userId);

    Integer getBorrowerStatus(Long userId);

    Page<Borrower> search(Integer pageNum, Integer pageSize, String keyWords);

    BorrowerDetailVO getDetailVo(Long id);

    void approval(BorrowerApprovalVO vo);

    BigDecimal getBorrowerAmount(Long userId);

    String getDictNameByDictCodeAndValue(String dictCode, String value);
}
